<html>
<head>
<script>

function openwin(func,url){
	window.open(url, 'selectWindow', 'height=600, width=800, top=50, left=100, toolbar=no, menubar=no, scrollbars=yes,resizable=yes,location=no, status=yes'); 
	window.callback=func;
}

</script>
</head>
<body>
<input type="button" onclick="openwin(cb_name,'2.htm')" value="openwin" />
<script>
var cb_name=function(id,name){
	showbody.innerHTML=id+","+name;
}
</script>

<input type="button" onclick="openwin(cb_sex,'3.htm')" value="openwins" />
<script>
var cb_sex=function(id,name){
	showbody.innerHTML=id+",sex,"+name;
}
</script>
<div id="showbody"></div>
</body>
</html>